Microsoft® JScript
debugger Statement
Home |

See Also                   


Description
Suspends code execution.

Syntax

debugger;

When a debugger statement is encounted in JScript code, the Microsoft Script Debugger is automatically started, if it isn't already open. The context for the debug session is the context of the code where the debugger statement appeared.

Remarks

You can place debugger statements anywhere in procedures to suspend execution. Using the debugger statement is similar to setting a breakpoint in code. The value of all variables is preserved while execution is suspended.


© 1996 by Microsoft Corporation.